package cn.tianjindong.blog.mapper;

import cn.tianjindong.blog.pojo.BlogVisitlog;
import cn.tianjindong.blog.pojo.BlogVisitlogExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface BlogVisitlogMapper {
    int countByExample(BlogVisitlogExample example);

    int deleteByExample(BlogVisitlogExample example);

    int deleteByPrimaryKey(Long id);

    int insert(BlogVisitlog record);

    int insertSelective(BlogVisitlog record);
    
    /**
     * 分页查询“用户登录日志”
     * @param startIndex
     * @param countItem
     * @return
     */
    List<BlogVisitlog> getVisitLogPageView(int startIndex, Integer countItem);

    List<BlogVisitlog> selectByExample(BlogVisitlogExample example);

    BlogVisitlog selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") BlogVisitlog record, @Param("example") BlogVisitlogExample example);

    int updateByExample(@Param("record") BlogVisitlog record, @Param("example") BlogVisitlogExample example);

    int updateByPrimaryKeySelective(BlogVisitlog record);

    int updateByPrimaryKey(BlogVisitlog record);

}